﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x02000112 RID: 274
	public class TRedshiftDropSchema : TCustomSqlStatement
	{
		// Token: 0x17000194 RID: 404
		// (get) Token: 0x060008F4 RID: 2292 RVA: 0x00302BC5 File Offset: 0x00300DC5
		// (set) Token: 0x060008F5 RID: 2293 RVA: 0x00302BCD File Offset: 0x00300DCD
		public virtual TObjectNameList NameList
		{
			get
			{
				return this.nameList;
			}
			set
			{
				this.nameList = value;
			}
		}

		// Token: 0x060008F6 RID: 2294 RVA: 0x00302BD6 File Offset: 0x00300DD6
		public TRedshiftDropSchema(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftDropSchema;
		}

		// Token: 0x060008F7 RID: 2295 RVA: 0x00302BEC File Offset: 0x00300DEC
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.nameList = (TObjectNameList)tdummy.list1;
			return 0;
		}

		// Token: 0x060008F8 RID: 2296 RVA: 0x00302C29 File Offset: 0x00300E29
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060008F9 RID: 2297 RVA: 0x00302C39 File Offset: 0x00300E39
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001234 RID: 4660
		private TObjectNameList nameList;
	}
}
